package br.com.cast.scc.pages.veiculo;

import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.markup.repeater.data.DataView;

import br.com.cast.scc.filtros.FiltroPesquisaVeiculos;
import br.com.cast.scc.model.Veiculo;

public class VeiculoGradePanel extends WebMarkupContainer {

	private static final long serialVersionUID = 1L;

	public VeiculoGradePanel(String id, FiltroPesquisaVeiculos filtro) {
		super(id);
		
		setOutputMarkupId(true);
		
		DataView<Veiculo> grade = new DataView<Veiculo>("veiculos", filtro) {
			
			private static final long serialVersionUID = 1L;

			@Override
			protected void populateItem(Item<Veiculo> item) {
				item.add(new Label("tpVeiculo.descricao"));
				item.add(new Label("nuEmbarcacao"));
				item.add(new Label("status"));
			}
		};
		
		add(grade);
	}

}
